import 'angular';

angular
    .module('homeMudule', [])
    .controller('homeCtr', homeCtr);

homeCtr.$inject = ['$scope', '$filter', 'LsyStorage', 'httpService'];

function homeCtr($scope, $filter, LsyStorage, httpService) {
    var _vm = this;
    $scope.author = '娄笙悦';
    $scope.age = 30;
    LsyStorage.setItem('user', 'loushengyue');
    
    console.log(LsyStorage.getItem('user') + 123);

    httpService
        .Request('get', './src/datas/productData.json')
        .then(function (data) {
            data = $filter('sexFilter')(data, 'man')
            console.log(data);
        })
}